<div class="toodeinfo">
	<div class="toodeimg">
		<a href="<?php echo $links[$product['id']] ?>"><img src="<?php echo @myPicture::getInstance(isset($product['ProductPictures'][0]) ? $product['ProductPictures'][0]['file'] : 'blabla')->thumbnail(243,195)->url() ?>" width="243" height="195" alt=""/></a>
	</div>
	<div class="toodeinf">
		<div class="toodeinftop">
			<h1><a href="<?php echo $links[$product['id']] ?>"><?php echo $product['name'] ?></a></h1>
			<?php 
				if( (strlen( $product['description']) )> 200 )
				{
					$out = substr($product['description'], 0, 200);
					$out  = $out ."...";
					?>
					<a href="<?php echo $links[$product['id']] ?>"><?php echo $out ?></a>
				<?php
				}else
				{
				?>
					<a href="<?php echo $links[$product['id']] ?>"><?php echo $product['description'] ?></a>			
				<?php
				}
			?>
		</div>
		<div class="toodeinfbottom">
			<?php include_partial('categoryPage/productBoxPrices', array('product' => $product)) ?>
			<div class="clear"></div>
			<div class="ostubutton">
				<div class="vlink">
					<p><a href="<?php echo $links[$product['id']] ?>"><?php echo __('vaata') ?></a></p>
				</div>
				<div class="addbutton">
					<div class="addbuttonleft"><img src="/enermaatik/img/rbleft.png" width="8" height="26" alt=""/></div>
					<div class="addbuttoncenter">
						<div class="addbuttoncenterleft"><img src="/enermaatik/img/vbasket.png" width="17" height="13" alt=""/></div>
						<div class="addbuttoncenterright">
							<input type="hidden" name="qty" value="1" />
							<a class="addToBasket" href="<?php echo $helper->basketLink($product)  ?>"><?php echo __('lisa ostukorvi') ?></a>
						</div>
						<div class="clear"></div>
					</div>

					<div class="addbuttonright"><img src="/enermaatik/img/rbr.png" width="8" height="26" alt=""/></div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>